<div class="article"><?php $article = pc_variable("commerce.article"); ?>
    <h3><?php pc_echo($article->get("name")); ?></h3>
    <?php if($article->get("image") !== null) { 
        $image = pc_image($article->get("image"), 100, 0);
        ?>
        <img width="<?php pc_echo($image->getWidth()); ?>" height="<?php pc_echo($image->getHeight()); ?>" src="<?php pc_echo($image->getContextLocation()); ?>"/>
    <?php } ?>
    <p>
        <span class="price"><?php pc_echo($article->get("price")->get("currency")->getSymbol() . " " . pc_format_number($article->get("price")->get("value"), "0.00")); ?></span>
    </p>
    <?php if($article->get("description") !== null) { ?><p>
        <?php pc_echo($article->get("description")); ?>
    </p><?php } ?>
    <form method="post" action="dispatcher.php">
        <fieldset><?php $id = $article->getId(); ?>
            <input type="hidden" name="targetPage.location" value="<?php pc_echo(pc_variable("currentPage.location")); ?>"/>
            <input type="hidden" name="articleId" value="<?php pc_echo($id); ?>"/>
            <label for="add<?php pc_echo($id); ?>.quantity"><?php pc_echo(pc_message("articles.count")); ?></label>
            <input type="text" id="add<?php pc_echo($id); ?>.quantity" name="quantity" value="1"/>
            <button type="submit" class="add-to-order" name="controller" value="Commerce/AddItemToOrder"><?php pc_echo(pc_message("articles.addToOrder")); ?></button>
        </fieldset>
    </form>
</div>